package com.liyiqing.secondhandmall.productservice.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liyiqing.commonservice.utils.PageUtils;
import com.liyiqing.commonservice.utils.Query;

import com.liyiqing.secondhandmall.productservice.dao.ProductSpuCommentDao;
import com.liyiqing.secondhandmall.productservice.entity.ProductSpuCommentEntity;
import com.liyiqing.secondhandmall.productservice.service.ProductSpuCommentService;


@Service("productSpuCommentService")
public class ProductSpuCommentServiceImpl extends ServiceImpl<ProductSpuCommentDao, ProductSpuCommentEntity> implements ProductSpuCommentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ProductSpuCommentEntity> page = this.page(
                new Query<ProductSpuCommentEntity>().getPage(params),
                new QueryWrapper<ProductSpuCommentEntity>()
        );

        return new PageUtils(page);
    }

}